<?php


namespace app\controllers;


use app\models\request\ReqActListPage;
use app\models\UserDto;
use app\service\MsgService;

class MsgListController extends BaseJsonController
{

    /**
     * @param $req ReqActListPage
     * @param $userInfo UserDto
     * @return \app\models\response\RespLogin|mixed
     * @throws \app\exception\OaException
     */
    public function doService($req,$userInfo)
    {
        $service = new MsgService();
        $req->setUserId($userInfo->getUserId());
        return $service->listPage($req);
    }


    protected function injectionReq()
    {
        return new ReqActListPage();
    }

    public function needLogin(){
        return false;
    }
}